package com.iwhalecloud.citybrain.flow.platform.manager.application.common.event;

import org.flowable.engine.runtime.ProcessInstance;

/**
 * @author lilh
 * @date 2019-02-19 22:02
 */
public class CreateParticipantEvent {

    private CreateParticipantVo createParticipantVo;

    private ProcessInstance processInstance;

    public CreateParticipantEvent(CreateParticipantVo createParticipantVo) {
        this(createParticipantVo, null);
    }

    public CreateParticipantEvent(CreateParticipantVo createParticipantVo, ProcessInstance processInstance) {
        this.createParticipantVo = createParticipantVo;
        this.processInstance = processInstance;
    }

    public ProcessInstance getProcessInstance() {
        return processInstance;
    }

    public void setProcessInstance(ProcessInstance processInstance) {
        this.processInstance = processInstance;
    }

    public CreateParticipantVo getCreateParticipantVo() {
        return createParticipantVo;
    }

    public void setCreateParticipantVo(CreateParticipantVo createParticipantVo) {
        this.createParticipantVo = createParticipantVo;
    }

    public static class CreateParticipantVo {

        private String participantId;

        private String participantName;

        private String participantType;

        private String from;

        public String getParticipantId() {
            return participantId;
        }

        public void setParticipantId(String participantId) {
            this.participantId = participantId;
        }

        public String getParticipantName() {
            return participantName;
        }

        public void setParticipantName(String participantName) {
            this.participantName = participantName;
        }

        public String getParticipantType() {
            return participantType;
        }

        public void setParticipantType(String participantType) {
            this.participantType = participantType;
        }

        public String getFrom() {
            return from;
        }

        public void setFrom(String from) {
            this.from = from;
        }
    }

}
